﻿/***************************************************************
* File    : VoltageSensor.cs
* Author  : Matthew Clifton
*
* Description:
*   Voltage Sensor object. Extends Sensor
*
* History :
***************************************************************/

using System;
namespace RLGDashboard
{
    public class VoltageSensor : Sensor
    {
        public override object[] convert(UInt16[] inValues)
        {
            object[] convertedValues = new object[4];
            convertedValues[0] = ((double)(inValues[0]) / 16.0);
            return convertedValues;
        }
        /*
        public override string[] getValues()
        {
            string[] values = new string[4];

            values[0] = currentSensorValues[0].ToString() + " V";

            updated = false;
            return values;
        }*/
    }
}